#include "qtabextwidget.h"

QTabExtWidget::QTabExtWidget(QWidget *parent) :
    QTabWidget(parent)
{
  this->setTabsClosable(true);
  this->setUsesScrollButtons(true);
  connect(this,SIGNAL(tabCloseRequested(int)),this,SLOT(closeTab(int)));
}

void QTabExtWidget::closeTab(int index)
{
//Handle tabCloseRequested Signal and Close the Tab
    this->removeTab(index);
}
